// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import FastClick from 'fastclick'
import YDUI from 'vue-ydui';
import 'vue-ydui/dist/ydui.rem.css';
import 'babel-polyfill'
import Vuex from 'vuex'

Vue.use(Vuex)

Vue.use(YDUI);

FastClick.attach(document.body);

Vue.config.productionTip = false


const store = new Vuex.Store({
    state: {
        isWxEnvironment: false
    },
})

/* eslint-disable no-new */
new Vue({
    el: '#app',
    store,
    router,
    template: '<App/>',
    components: {
        App
    }
})
